<include file="Common:header" />
<TYjs file='fix_table_title'/>
<div class="table_content">
	<div class="other">
        <a class="a_btn" href="{:U(MODULE_NAME.'/Role/edit_role',array('type'=>'add'))}">添加管理员等级</a>
    </div>
    <table class="list_table">
		<tr>
           <!-- <th width="50px"><input type="checkbox" class="check_all" title="勾选全部"/></th> -->
           <th width="70px">ID</th>
           <th width="190px">管理员等级</th>
           <th width="190px">备注</th>
           <th width="100px">是否开启</th>
           <th width="130px">操作</th>
       </tr>
       <volist name="roleList" id="vo">
       	   <tr>
       	   		<!-- <td>
       	   			<input type="checkbox" name="ids[]" class="check_one" value="{$vo.id}"/>
       	   		</td> -->
       	   		<td>
       	   			{$vo['id']}
       	   		</td>
       	   		<td>
       	   			{$vo['name']}
       	   		</td>
       	   		<td>
       	   			{$vo['remark']}
       	   		</td>
       	   		<td>
       	   			<input type="button" class="js_status status_{$vo['status']?'enable':'disable'}"  url="{:U(MODULE_NAME.'/Role/change_role_status',array('id'=>$vo['id']))}"/>
       	   		</td>
       	   		<td>
       	   		<if condition="$vo['name'] neq Superadmin">
       	   			<a class="edit" href="{:U(MODULE_NAME.'/Role/edit_role',array('id'=>$vo['id']))}" title="编辑"></a>
                	<a class="purview" href="{:U(MODULE_NAME.'/Role/edit_access',array('id'=>$vo['id']))}" title="设置权限"></a>
                	<!-- <a class="power" href="{:U(MODULE_NAME.'/Role/edit_power',array('id'=>$vo['id']))}" title="设置页面权限"></a> -->
       	   			<if condition="$vo['id'] neq 5 AND $vo['id'] neq 3">
       	   				<a class="delete" href="{:U(MODULE_NAME.'/Role/delete_admin',array('id'=>$vo['id']))}" title="删除"></a>
       	   			</if>
       	   		<else/>
       	   		</if>
       	   		</td>
       	   		<!-- <td>
       	   			{$vo[0]['access_name']}
       	   		</td> -->
       	   </tr>
       </volist>
    </table>
</div>
<include file="Common:footer" />
